<h1><%= title "New Town" %></h1>

<% form_for(@town) do |f| %>
  <%= f.error_messages %>

  <p>
		<%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
		<%= f.label :county_id %><br />
    	<select name="town[county_id]">
		<%= options_county_select %>
		</select>
  </p>
  <p>
		<%= f.label :infrastructure %><br />
    <%= f.text_field :infrastructure %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', towns_path %>